package com.itjavas.cslp2.service;

import com.itjavas.cslp2.pojo.entity.Course;
import com.itjavas.cslp2.pojo.entity.User;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {
    //登录
    ResponseEntity<Boolean> login(User user);
    //注册
    ResponseEntity<Boolean> register(User user);
    //签到加积分
    Boolean point(Integer id);
    //主界面查用户信息
    User getUserInfo(String name);
    //编辑用户信息
    Boolean editUser(User user);
    //编辑账户使用状态
    Boolean editStatus(User user);
    //根据用户获取选课信息
    ResponseEntity<List<Course>> getRecordByUser(User user);
    //修改用户密码
    Boolean editPassword(User user);
}
